package be.jprojects.subscription.gui.crudstatus;

import be.jprojects.subscription.gui.detailpanels.DetailPanel;


public class UpdateStatus extends CRUDStatus {

	public UpdateStatus(DetailPanel detailPanel) {
		super(detailPanel);
	}

	@Override
	public void saveActionPerformed() {
		detailPanel.saveUpdateActionPerformed();
		detailPanel.setCurrentStatus(detailPanel.getReadStatus());
	}

	@Override
	public void cancelActionPerformed() {
		detailPanel.cancelUpdateActionPerformed();
		detailPanel.setCurrentStatus(detailPanel.getReadStatus());
	}

}
